package com.guo.hui.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.guo.hui.enity.User;
import com.guo.hui.mapper.UserMapper;
import com.guo.hui.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> selectUserList(String param) {
        JSONObject obj = JSONObject.parseObject(param);
        Map<String,Object> map = new HashMap<>();
        map.put("ss",obj.getString("---"));
        List<User> list = userMapper.selectUserByMap(map);
        return list;
    }

    @Override
    public List<User> selectUserByMap(Map<String, Object> map) {
        return null;
    }

    @Override
    public User selectById(Integer id) {
        return null;
    }

    @Override
    public void batchDelete(String ids) {

    }

    @Override
    public void saveUser(User user) {

    }

    @Override
    public void updateUser(User user) {

    }
}
